package org.example.gateway.utils;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

public class DateTimeUtil {
    public static Date LocalDateTime2Date(LocalDateTime dateTime) {
        ZoneId zoneId = ZoneId.systemDefault();
        Instant timeInstant = dateTime.atZone(zoneId).toInstant();
        return Date.from(timeInstant);
    }
}
